package JAVA20241111;
class N {
    public int year;
    public int month;
    public int day;

public N(int year, int month, int day){
    this.year = year;
    this.month = month;
    this.day = day;
    System.out.println("Date(int,int,int)方法被调用了");
}
public void printfN(){
    System.out.println(year+"-"+month+"-"+day);
}
    public static void main(String[] args) {
        N d= new N(2024,11,11);
        d.printfN();
    }
}


